//
//  CountDownButton.h
//  CedarFinancePH
//
//  Created by lshenrong on 2018/3/29.
//  Copyright © 2018年 cedarhd. All rights reserved.
//

#import <UIKit/UIKit.h>
@class CountDownButton;

typedef void(^CountDownCompletion)(CountDownButton *countDownButton);

/**
 倒计时按钮
 */
@interface CountDownButton : UIButton




@property(nonatomic,assign) BOOL isBeginTime;

/**
只是文字
 */
+ (instancetype)buttonWithTime:(NSInteger)seconds;


/**
 有背景
 */
+ (instancetype)buttonWithTime:(NSInteger)seconds title:(NSString *)title;


- (void)beginTimeWithCompletion:(CountDownCompletion)completion;
- (void)stopTimer;


@end
